﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Nissen_Model;
using Nissen_Model.Dto;

namespace Nissen_Common
{
	public class ContextManager
	{
		private const string UserKey = "{381E21A2-581A-46ab-B970-D163F3040652}";


		public LoginUser CurrentUser
		{
			get { return (LoginUser)ht[UserKey]; }
			set { ht[UserKey] = value; }
		}

		private Hashtable ht = new Hashtable();


		private static ContextManager _instance;
		public static ContextManager Instance
		{
			get
			{
				if (_instance == null)
					_instance = new ContextManager();
				return _instance;
			}
		}


        public PosHacker.Form.FormSetCourse _FormSetCourse{get;set;}

        private ContextProperties iContextProperties;
        public ContextProperties _ContextProperties
        {
            get
            {
                if (this.iContextProperties == null)

                    this.iContextProperties = new ContextProperties();

                return this.iContextProperties;
            }
            
        }
	}

    public class ContextProperties{
        public string TestName { get; set; }
        public string SubjectName { get; set; }
       // public string SubjectName { get; set; }
    }
}
